package com.ruoyi.manage.mapper;

import com.ruoyi.manage.domain.Avatar;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ZhangZhongGen
 */
@Mapper
public interface AvatarMapper {

    @Select("select * from tb_avatar")
    public List<Avatar> selectAvatarList();

    @Insert("insert into tb_avatar(image) values(#{image})")
    public void insertAvatar(String image);

    @Delete("delete from tb_avatar where id=#{id}")
    public void deleteAvatarById(Long id);
}
